package com.tmt.asm;

import com.tmt.asm.service.HelloServiceImpl;
import com.tmt.asm.service.IHelloService;

public class TestCglib {

	public static void main(String[] args) {
		IHelloService ihello = new HelloServiceImpl();
		CglibProxy proxy = new CglibProxy(ihello);
		IHelloService helloProxy = (IHelloService) proxy.getProxy();
		helloProxy.sayHello();
	}
}